package homework1;

public class ex2 {
    public static void main(String[]args){
       int a=17;
       int b=64;
       int c=-9;
       int d=238;
       int f=167;
       int g=135;
       System.out.println(Integer.toBinaryString(a));
       System.out.println(Integer.toBinaryString(b));
       System.out.println(Integer.toBinaryString(c));
       System.out.println(Integer.toBinaryString(d));
       System.out.println(Integer.toBinaryString(f));
       System.out.println(Integer.toBinaryString(g));
       System.out.println(Integer.toHexString(d));
       System.out.println(Integer.toHexString(f));
       System.out.println(Integer.toHexString(g));
    }
}
